package demo;

public class Test3 {
    public static void main(String[] args) {
        double youhui;
        double zheko;
        youhui = 16 + 8 +3;
        zheko = 24 + 8 + 3;
        zheko = zheko > 30 ? zheko * 0.8 : zheko;
        double min = youhui < zheko ? youhui : zheko;
        System.out.println("最少要花费" + min + "元");
    }
}
